/**
 * File: BatchSequenceWriteController.java
 * Created by: mhaimel
 * Created on: 27 Jul 2009
 * CVS:  $Id: BatchSequenceWriteController.java,v 1.2 2009/08/13 10:40:52 mhaimel Exp $
 */
package uk.ac.ebi.curtain.controller.writer;

import uk.ac.ebi.curtain.controller.ParallelQueuedController;
import uk.ac.ebi.curtain.controller.SimpleReport;
import uk.ac.ebi.curtain.controller.loader.impl.ReadsWriteBean;
import uk.ac.ebi.curtain.controller.velvet.VelvetInputBean;
import uk.ac.ebi.curtain.management.IControllerReport;
import uk.ac.ebi.curtain.processor.writer.impl.BatchSequenceWriteProcessor;

/**
 * @author mhaimel
 *
 */
public class BatchSequenceWriteController extends ParallelQueuedController<ReadsWriteBean, VelvetInputBean, BatchSequenceWriteProcessor> {

	@Override
	protected IControllerReport getReturnCall() {
		return new SimpleReport("Finished!");
	}

	@Override
	protected BatchSequenceWriteProcessor buildController() {
		BatchSequenceWriteProcessor writer = getContext().getInjector().getInstance(BatchSequenceWriteProcessor.class);
		return writer;
	}
	
}
